package com.faiz.algorithm;

import java.util.Random;

public class MyRandom {
    public static void of() {
        //可生成[0,seed]的随机数
        Random random = new Random(5);
        for (int i =  0 ; i <= 5; i++) {
            System.out.println(random.nextInt(i +1));
        }
    }
}
